package StudyCode.summary.mycollection;

import java.util.Collections;
import java.util.Vector;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class FindMaximumElementOfVector {
	public static void main(String[] args) {
		Vector v = new Vector();
		v.add(new Double("3.1"));
		v.add(new Double("5.1"));
		v.add(new Double("2.1"));
		v.add(new Double("7.1"));
		v.add(new Double("3.1"));

		Object obj = Collections.max(v);

		System.out.println("Vector 最大元素是 : " + obj);
	}
}
